import time
from selenium.webdriver.common.by import By

from Linkerui.pages.base_page import BasePage


class Baseinfo(BasePage):
    BASEINFO = (By.XPATH, '//*[@id="app"]/div/div[1]/div/ul/li[2]/span')

    ORGMANGER = (By.XPATH, '//*[@id="app"]/div/div[2]/div[1]/div[1]/div[2]/div/span')

    ORGANIZE = (By.XPATH, '//*[@id="app"]/div/div[2]/div[1]/div[1]/div[2]/ul/li[1]/div')

    ORGANIZEQUERY = (By.XPATH, '//*[@id="layOutMainId"]/div/div[1]/div/form/div[6]/div/div[1]/span')

    def base_info(self):
        self.click(self.BASEINFO)
        print(self.click(self.BASEINFO))
        time.sleep(2)
        self.click(self.ORGMANGER)
        time.sleep(2)

        self.click(self.ORGANIZE)
        time.sleep(2)

        self.click(self.ORGANIZEQUERY)
        time.sleep(2)




